package net.display;

import javax.servlet.http.HttpServletRequest;

import net.ko.controller.KObjectController;
import net.ko.displays.KObjectDisplay;
import net.ko.http.views.KFieldControl;
import net.ko.kobject.KObject;
import net.ko.types.HtmlControlType;

public class LigneFraisForfait extends KObjectDisplay {

	public LigneFraisForfait() {
		
	}

	@Override
	public String getCaption(KObject ko, String memberName) {
	
		return super.getCaption(ko, memberName);
	}

	@Override
	public KFieldControl getControl(KObject ko, String memberName,
			KObjectController koc, HttpServletRequest request) {
		KFieldControl result= super.getControl(ko, memberName, koc, request);
		switch (memberName) {
		case "quantite":
			//result.setFieldType(HtmlControlType.khcReadOnlyText);
			break;
		default:
			break;
		}
		return result;
	}
}